<?php
/**
 * This file handles the retrieval and serving of news articles
 */
class Allservices_Controller
{
	/**
	 * This template variable will hold the 'view' portion of our MVC for this 
	 * controller
	 */
	public $template = 'allservices';
	
	/**
	 * This is the default function that will be called by router.php
	 * 
	 * @param array $getVars the GET variables posted to index.php
	 */
	public function main(array $getVars)
	{
		$allServicesModel = new Allservices_Model;
		
		//get an article
		$article = $allServicesModel->get_article();
		
		//create a new view and pass it our template
		$view = new View_Model($this->template);
		
		//assign article data to view
		$view->assign('article' , $article);
	}
}